#include "slanDirFileDock.h"
#include "slanEdit.h"
#include <QTreeView>
#include <QStandardItem>
#include <QStandardItemModel>
#include <QStringListModel>
#include <QHBoxLayout>
#include <QSplitter>
#include <QDirModel>
#include <QListView>
#include <slanEditWidget.h>
#include <QDebug>

SlanDirFileDock::SlanDirFileDock(const QString &name, SlanEdit *parent)
    : QDockWidget(name,parent)
{
    QTreeView *tree = new QTreeView(this);
    QDirModel *model = new QDirModel;
    tree->setModel(model);
//    tree->setRootIndex(model->index("C:\\"));


//    connect(tree, &QTreeView::clicked, parent, &SlanEdit::slotOpenFile);

    this->setWidget(tree);

}

//void SlanDirFileDock::mouseDoubleClickEvent(QMouseEvent *)
//{
//    qDebug() << "sss";
//}



